//
//  CenterButtom.m
//  SinaWebo
//
//  Created by wwj on 16/6/30.
//  Copyright © 2016年 亦心. All rights reserved.
//

#import "CenterButtom.h"

@implementation CenterButtom

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self initView];
    }
    return self;
}

- (instancetype)initWithCoder:(NSCoder *)coder{
    self = [super initWithCoder:coder];
    if (self) {
        [self initView];
    }
    return self;
}

- (void)initView{

}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.imageView.width = 22;
    self.imageView.height = self.imageView.width;
    self.imageView.centerY = self.centerY;
    self.titleLabel.centerY = self.imageView.centerY;
    self.titleLabel.x = CGRectGetMaxX(self.imageView.frame) + 5;
}

@end
